package cn.itlaobing.service;

import cn.itlaobing.dao.UserDao;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by lhb on 2017/11/30.
 */
@Service
public class SayHello implements UserService {
    Logger logger=Logger.getLogger(this.getClass());
    @Autowired
    private UserDao userDao;

    @Override
    public void register(String name) {
        logger.info("UserServic>>>>>>>>>>>>>>>>"+name);
        userDao.save(name);
    }
}
